#include <stdio.h>
#include<limits.h>
#include<stddef.h>
#define NUMBER 5

int count_bits(unsigned x){
    int bits = 0;
    while(x){
        if(x&1U) bits++;
        x>>=1;
    }
    return bits ;
}

int int_bits(void){
    return count_bits(-1U);
}

void printf_bits(unsigned x){
    int i;
    for(i=int_bits()-1;i>=0;i--){
        putchar(((x>>i) & 1U) ? '1' : '0');
    }
        putchar('\n');
}

int main(int argc, char* argv[]){
       unsigned a = 1963 , b = 12345 ;
       printf_bits(a);
       printf_bits(b);
       printf_bits(a&b);
       printf_bits(a|b);
       printf_bits(a^b);
       printf_bits(~a);
       printf_bits(~b);
        return 0;
}

